import config from "@/config"
import http from "@/utils/request"

export default {
	//合同
	contract:{
		list: {
			url: `${config.API_URL}/adminapi/shop.ContractOrder/lists`,
			name: "获取合同列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/shop.ContractOrder/edit`,
			name: "修改合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/shop.ContractOrder/add`,
			name: "添加合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/shop.ContractOrder/delete`,
			name: "删除合同",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/shop.ContractOrder/detail`,
			name: "合同详情",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		check: {
			url: `${config.API_URL}/adminapi/shop.ContractOrder/checkStatus`,
			name: "审核合同",
			post: async function(params){
				return await http.post(this.url, params);
			}
		},
	},
}
